import request from '@/router/axios'

/**
 * 话术库分组列表
 */
export function getMediumGroup (query) {
    return request({
        url: '/cp/mediumwechat/group_list',
        method: 'get',
        params: query
    })
}
/**
 * 新建话术
 */
export function addText (obj) {
    return request({
        url: '/cp/mediumwechat',
        method: 'post',
        data: obj
    })
}
//获取话术内容列表
export function materialLibraryList (query) {
    return request({
        url: '/cp/mediumwechat/page',
        method: 'get',
        params: query
    })
}
//话术发送
export function sendMessage (query) {
    return request({
        url: '/cp/mediumwechat/send',
        method: 'get',
        params: query
    })
}
